import { AsyncData } from 'nuxt/dist/app/composables';

export default function watchAsyncDataError(
  asyncData: AsyncData<unknown, Error | null>,
) {
  // watch(asyncData.error, (error) => error && useErrorTip(error.message));
  whenever(asyncData.error, (error) => useErrorTip(error.message));
}

useErrorTip;
